package com.longqinuo.mycarservice.utils;

import android.os.Environment;

/**
 * Created by zxw on 2016/6/30.
 */
public class PathUtils {
    public static boolean isNetConection = false;
    public static boolean havedLogin = false;

    public static final String SOCKET = "123.57.219.102:8080";   // 远端服务器
    //    public static final String SOCKET = "172.16.8.100:8080";   //本地服务器IP加端口号
    public static String SAVED_IMAGE_DIR_PATH =      //拍照保存路径
            Environment.getExternalStorageDirectory().getPath()
                    + "/CarServer/camera/";
    //发帖接口
    public static final String PBLISH_POST = "http://"+SOCKET+"/CarMarket/notes/notesAction_addNote.action";
    //查询贴子接口
    public static final String GET_NOTE = "http://"+SOCKET+"/CarMarket/notes/notesAction_queryByUser.action";
    //头像及贴子图片 加载接口
    public static final String LOAD_HEADER = "http://"+SOCKET+"/CarMarket/upload/";
    //上传图片接口
    public static final String UPDATE_HEADER_URL = "http://"+SOCKET+"/CarMarket/userAction_upLoadPhoto.action";
    //登录接口
    public static final String LOGIN_URL = "http://"+SOCKET+"/CarMarket/userAction_loginUser.action";
    //注册接口
    public static final String REGISTER_URL = "http://"+SOCKET+"/CarMarket/userAction_addUser.action";
    //找回密码接口
    public static final String FIND_URL = "http://"+SOCKET+"/CarMarket/userAction_getPassword.action";
    //判断是否注册接口
    public static final String IS_HASED = "http://"+SOCKET+"/CarMarket/userAction_checkPhone.action";
    //短信验证 key
    public static final String SMSSDK_KEY = "14761ff5f0876";
    public static final String SMSSDK_SECRET = "ac031ec01ccf3df630bd825ce63e5acc";

    public static String names[] = {"奥迪","阿斯顿·马丁","宝马","奔驰","本田","别克","标致","比亚迪","宝骏",
            "奔腾","宝沃","北京汽车","北京绅宝","保时捷","宾利","布加迪","巴博斯","长城","长安","昌河","长江EV",
            "大众","东南","道奇","东风","丰田","福特","菲亚特","福田","法拉利","福迪","观致","广汽","光冈",
            "哈弗","海马","华泰","红旗","哈飞","吉利","江淮","捷豹","金杯","江铃","凯迪拉克","克莱斯勒","凯瑞",
            "雷克萨斯","铃木","雷诺","路虎","林肯","劳斯莱斯","兰博基尼","马自达","玛莎拉蒂","摩根","纳智捷",
            "讴歌","欧宝","帕加尼","起亚","奇瑞","日产","荣威","斯柯达","三菱","斯巴鲁","双杯","腾势","沃尔沃",
            "五菱","威兹曼","雪弗兰","现代","雪铁龙","英菲尼迪","一汽","众泰","中华"};
    public static String prices[] = {"不限","0-3","3-5","5-8","8-10","10-15",
            "15-20","20-30","30-50","50-100","100"};
    public static String mileages[] = {"不限","1","3","6","10","20"};
    public static String ages[] = {"不限","1","1-3","3-5","5-8","8-10","10"};


    //查询车辆接口
    public static final String QUERY_CAR = "http://"+SOCKET+"/CarMarket/carAction_queryPage.action";

    //车辆图片接口
    public static final String CAR_PHOTO = "http://"+SOCKET+"/CarMarket/car/";
    //查询车辆配置接口
    public static final String CAR_CONFIG = "http://"+SOCKET+"/CarMarket/carAction_queryById.action";
    //查询车辆品牌
    public static final String CAR_TYPE = "http://"+SOCKET+"/CarMarket/carAction_queryTypes.action";
    //查询套餐接口
    public static final String KEEP_SERVER = "http://"+SOCKET+"/CarMarket/packageAction_queryPage.action";
    //查询套餐详情接口
    public static final String SERVER_INFO = "http://"+SOCKET+"/CarMarket/packageAction_queryDetail.action";
    //套餐图片
    public static final String SERVER_PHONE = "http://"+SOCKET+"/CarMarket/package/";

    public static final String SHOWAPI_APPID = "21805";   //易源appId
    public static final String SHOWAPI_APP_SECRET = "fbe5fb475e7c46e5bd55fe3a23dd50e5";   //易源接口

    public static final String GAS_PRICE="http://route.showapi.com/138-46?prov=河南&showapi_appid="
            +SHOWAPI_APPID+"&showapi_sign="+SHOWAPI_APP_SECRET;// 今日省份油价

    // 百度APIkey
    public static final String BAIDU_API_KEY = "30ffdfe9f34626aa67f277ccf4da51fe";
    //新闻频道 接口
    public static final String NEWS_CHANNEL = "http://apis.baidu.com/showapi_open_bus/channel_news/search_news";
    //聚合数据 APP_KEY
    public static final String JUHE_APP_KEY = "3a1089cda76f875f30ba4d0363f3678a";
    //请求违章查询接口 http://v.juhe.cn/wz/query?city=SH&hphm=%E8%8B%8FL50A11&engineno=123456&key=3a1089cda76f875f30ba4d0363f3678a
    public static final String BREAK_QUERY = "http://v.juhe.cn/wz/query";
}